From: Keir Fraser Date: Tue, 4 May 2010 11:39:29 +0000 (+0100) Subject: x86: fix off-by-one error in the cache flush portion of flush_area_local(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12272 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=283fec5d9ac814b489580c1c8d1069447454fe63;p=xen.git x86: fix off-by-one error in the cache flush portion of flush_area_local(). Signed-off-by: Jan Beulich --- diff --git a/xen/arch/x86/flushtlb.c b/xen/arch/x86/flushtlb.c index 5a012d4a0d..e0388e7cd9 100644 --- a/xen/arch/x86/flushtlb.c +++ b/xen/arch/x86/flushtlb.c @@ -149,7 +149,7 @@ void flush_area_local(const void *va, unsigned int flags) { unsigned long i, sz = 0; - if ( order < (BITS_PER_LONG - PAGE_SHIFT - 1) ) + if ( order < (BITS_PER_LONG - PAGE_SHIFT) ) sz = 1UL << (order + PAGE_SHIFT); if ( c->x86_clflush_size && c->x86_cache_size && sz &&